#!/bin/bash
PASSWD=`head -200 /dev/urandom | cksum |cut -b 1-8`
for i in xiaocong{1..10}
do
        useradd xiaocong$i |echo "$PASSWD" | passwd --stdin $PASSWD xiaocong$i && echo -e "user $i \t passwd: $PASSWD" >>/tmp/pass.log
done

